package com.xuecheng.basic.api;

import com.xuecheng.commons.model.vo.CategoryVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Sober_wxy
 * @date 2022/7/22 20:53
 */
@FeignClient("xc-basic-service")
public interface BasicClient {
        /**
         * 远程调用的自定义Feign接口
         * @param id 课程id
         * @return ResponseResult<CategoryVo>
         */
        @GetMapping("/category/{id}")
        public ResponseResult<CategoryVo> findById(@PathVariable("id") String id);
}
